package self;

public class Amaze {
    public static void main(String[] args) {
        new Amaze().show();
    }

    // 是让外层的循环条件表达式的结果可以受到里层循环体代码的控制
    private void show() {
        int arr[][] = {{1,2,3},{4,5,6,7},{9}};
        boolean found = false;
        for(int i=0;i<arr.length && !found;i++) {
            for(int j=0;j<arr[i].length;j++){
                if(arr[i][j] == 5) {
                    System.out.println("i=" + i + ",j=" + j);
                    found = true;
                    break;
                }
            }
        }
    }

}
class DD extends Amaze {

}


abstract class ABC{
    public static void main(String[] args) {
        try {
            System.out.println(1/1);
            return;
        }catch (Exception e){
            System.out.println("catch");
        }finally {
            System.out.println("finally");
        }
    }
}
